import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.layout.StackPane;
import javafx.scene.shape.Circle;
import javafx.scene.paint.Color;
import javafx.scene.text.Font;
import javafx.scene.text.FontWeight;
import javafx.scene.text.FontPosture;
import javafx.scene.control.Label;

public class Test extends Application {
	public void start(Stage stage) {
		Circle circle=new Circle();
		circle.setRadius(50);
		circle.setStroke(Color.BLACK);
		circle.setFill(null);

		Label label=new Label("JavaFX");
		label.setFont(Font.font("Arial",FontWeight.EXTRA_BOLD, FontPosture.ITALIC, 16));
		label.setStyle("-fx-text-fill:blue");

		StackPane pane=new StackPane();
		pane.getChildren().addAll(circle, label);

		Scene scene=new Scene(pane,200,200);

		stage.setTitle("font test");
		stage.setScene(scene);
		stage.show();
	}
}
